projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f66ef18
)
(Frename_file): After prompting for ok-if-already-exists, pass only nil or
author
Roland McGrath
<roland@gnu.org>
Sat, 3 Jul 1993 06:58:05 +0000
(06:58 +0000)
committer
Roland McGrath
<roland@gnu.org>
Sat, 3 Jul 1993 06:58:05 +0000
(06:58 +0000)
t to copy-file, never an integer.
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index 41838f0937ec4077ba41c42affcfac676bf45194..fe4deb1fd32431f9d722b38296f1b54c71adcc88 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-1767,7
+1767,10
@@
This is what happens in interactive use with M-x.")
{
if (errno == EXDEV)
{
- Fcopy_file (filename, newname, ok_if_already_exists, Qt);
+ Fcopy_file (filename, newname,
+ /* We have already prompted if it was an integer,
+ so don't have copy-file prompt again. */
+ NILP (ok_if_already_exists) ? Qnil : Qt, Qt);
Fdelete_file (filename);
}
else